﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/MasterPage.master" AutoEventWireup="true"
    CodeFile="Presents.aspx.cs" Inherits="Pages_Default2"%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" runat="Server">
    
    <asp:ListView ID="ListView1" runat="server" 
    ItemPlaceholderID="ItemContainer" onitemcommand="ListView1_ItemCommand" EnableViewState="false">
        <LayoutTemplate>
            <asp:PlaceHolder ID="ItemContainer" runat="server"></asp:PlaceHolder>
        </LayoutTemplate>
        <ItemTemplate>
            <p>
                <img src=<%#Eval("img_url") %> align="left" />
                <hr />
                <div>
                    <%#Eval("name_p") %><br />
                    <%#Eval("description") %><br />
                    <asp:Label ID="Label1" runat="server" Text="Цена: "><%#Eval("price") %></asp:Label><br />
                    <asp:Button ID="addToCartButton" runat="server" Text="В корзину" CommandArgument='<%# Eval("id_present") %>'/>
                </div>
                
            </p>
        </ItemTemplate>
    </asp:ListView>
</asp:Content>
